updating oE fib

fib

include math.e 
namespace math 
public function fib(integer i) 

computes the nth Fibonacci Number.

Parameters:
  1. value : an integer. The starting value to compute a Fibonacci Number from.
Returns:

An atom,

  • The Fibonacci Number specified by value.
Comments:
  • Note that due to the limitations of the floating point implementation, only 'i' values less than 76 are accurate on Windows platforms, and 69 on other platforms (due to rounding differences in the native C runtime libraries).
Example 1:
  ? fib(6) 
-- output ...  
-- 8 
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu